package com.edu.edumanager.service;

import com.edu.edumanager.bean.EduChapter;

import java.util.List;

/**
 * @program: edu-manager
 * @description:
 * @author: Jaime
 * @create: 2021-08-21 23:21
 **/
public interface ChapterService {
    /**
     * 添加章节service
     * @param chapter
     * @return
     */
    int addChapter(EduChapter chapter);

    /**
     *
     * @param chapterId
     * @return
     */
    EduChapter getChapterById(Integer chapterId);

    List<EduChapter> getChapterList(Integer courseId);

    int deleteChapterById(Integer chapterId);

    int updateChapter(EduChapter chapter);

    int deleteChapterByCourseId(Integer courseId);
}
